package cn.zhf.shop.mapper;
import cn.zhf.shop.entity.campus.CamOverview;
import cn.zhf.shop.entity.search.CampusSearch;
import org.apache.ibatis.annotations.Param;

import cn.zhf.shop.entity.Campus;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CampusMapper {
    int deleteByPrimaryKey(Integer campusId);

    int insert(Campus record);

    int insertSelective(Campus record);

    Campus selectByPrimaryKey(Integer campusId);

    int updateByPrimaryKeySelective(Campus record);

    int updateByPrimaryKey(Campus record);

    List<Campus> selectAll();

    int deleteByCampusId(@Param("campusId")Integer campusId);

    List<Campus> selectByOrgId(@Param("orgId")Integer orgId);

    List<Campus> selectByCity(@Param("city") String city);

	List<Campus> searchByCampusName(@Param("campusName")String campusName);

	int updateCampusStateByCampusId(@Param("state")Integer state,@Param("campusId")Integer campusId);

    CamOverview searchByHead(@Param("head")Integer head);

    String selectCampusNameByCampusId(@Param("campusId")Integer campusId);

    List<Campus> selectByHead(@Param("head")Integer head);

    
    List<Campus> selectBySearch1(@Param("campusName") String campusName, @Param("provice") String provice);
    
    List<Campus> selectBySearch2 (String str);

    List<Campus> selectBySearch3(@Param("campusName") String campusName, @Param("provice") String provice, @Param("referenceId") Integer referenceId);

    List<Campus> selectBySearch4(@Param("referenceId") Integer referenceId, @Param("str") String str);

    List<Campus> selectBySearch5(@Param("campusName") String campusName, @Param("provice") String provice, @Param("head") Integer head);

    List<Campus> selectBySearch6(@Param("head") Integer head, @Param("str") String str);

    Campus  selectByCampusName(@Param("campusName") String campusName);

    List<Campus> selectByOrgNameAndCampusNameAndProviceAndConntactAndHeadName(CampusSearch campusSearch);


}
